﻿/*
 * Created by SharpDevelop.
 * User: Administrator
 * Date: 2016/5/10
 * Time: 10:30
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace SharpErp.Data.Common.Entity
{
	/// <summary>
	/// Description of KVEntity.
	/// </summary>
	[Serializable]
	[Table("kv_entity")]
	public class KVEntity : BaseEntity
	{
		public const string KEY_ITEM_FIRST_CLASS = "item_first_class";
		public const string KEY_ITEM_SECOND_CLASS = "item_second_class";
		public const string KEY_ITEM_THIRD_CLASS = "item_third_class";
		public const string KEY_ITEM_FORTH_CLASS = "item_forth_class";
		public const string KEY_ITEM_FIFTH_CLASS = "item_fifth_class";
		public const string KEY_ITEM_SIXTH_CLASS = "item_sixth_class";

		public const string KEY_MATERIAL_FIRST_CLASS = "material_first_class";
		public const string KEY_MATERIAL_SECOND_CLASS= "material_second_class";
		public const string KEY_MATERIAL_THIRD_CLASS = "material_third_class";
		public const string KEY_MATERIAL_FORTH_CLASS = "material_forth_class";
		public const string KEY_MATERIAL_FIFTH_CLASS = "material_fifth_class";
		public const string KEY_MATERIAL_SIXTH_CLASS = "material_sixth_class";

	    public const string KEY_CUSTOMER_FIRST_CLASS = "customer_first_class";
	    
	    
	    /// <summary>
	    /// 工艺设备
	    /// </summary>
	    public const string KEY_GENERAL_INFO_FACILITY = "general_info_facility"; 
        /// <summary>
        /// 换算单位
        /// </summary>
	    public const string KEY_GENERAL_INFO_UNIT= "general_info_unit"; 
        /// <summary>
        /// 保修期
        /// </summary>
	    public const string KEY_GENERAL_INFO_SAFE_TIME = "general_info_safe_time"; 
        /// <summary>
        /// 制作要求
        /// </summary>
	    public const string KEY_GENERAL_INFO_REQUIREMENT = "general_info_requirement";
        /// <summary>
        /// 商品公式编制器
        /// </summary>
        public const string KEY_FORMULATION_GOODS = "formulation_goods";
        /// <summary>
        /// 材料公式编制器
        /// </summary>
        public const string KEY_FORMULATION_MATERIAL = "formulation_material";
        /// <summary>
        /// 路径设置
        /// </summary>
        public const string KEY_PATH_MAPPING = "path_mapping";
        /// <summary>
        /// 面数
        /// </summary>
        public const string KEY_GOODS_FACE = "goods_face";
        /// <summary>
        /// 颜色
        /// </summary>
        public const string KEY_GOODS_COLOR = "goods_color";

        /// <summary>
        /// 客户级别 
        /// </summary>
        public const string KEY_CUSTOMER_LEVEL = "customer_level";
	    

		public int Id{ get; set; }
		
		public string Key{get;set;}
		
		public string Value{get;set;}
	}
	
	

    [Serializable]
    public class CustomerFirstClass : BaseEntity
    {
		public int Id {get;set;}
		public string Name{get;set;}
    }
    
    [Serializable]
    public class GeneralInfoItem : BaseEntity
    {
    	public int Id{get;set;}
    	public string Name{get;set;}
    }

    [Serializable]
    public class FormulationItem : BaseEntity
    {

        public int Id { get; set; }
        public string Name { get; set; }
        public string Formulation { get; set; }
    }

    [Serializable]
    public class LocalSettingItem : BaseEntity
    {
        public int Id { get; set; }
        public int ParentId { get; set; }
        public string Name { get; set; }
        public string Value { get; set; }

        public const string KEY_LOCAL_SETTING_ITEM = "local_setting";
    }

}
